package com.ruoyi.web.dorm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentEntity {
    /**
     * id
     */
    @Excel(name = "id", width = 20)
    private Long id;

    /**
     * 学号
     */
    @Excel(name = "学号", width = 30)
    private Long studentNum;

    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名", width = 20)
    private String studentName;

    /**
     * 学生性别
     */
    @Excel(name = "学生性别", width = 20)
    private String studentSex;

    /**
     * 学生年龄
     */
    @Excel(name = "学生年龄", width = 20)
    private Long studentAge;

    /**
     * 学生电话
     */
    @Excel(name = "学生电话", width = 20)
    private Long studentPhone;

    /**
     * 班级编号
     */
    @Excel(name = "班级编号", width = 20)
    private Long classId;

    /**
     * 寝室编号
     */
    @Excel(name = "寝室编号", width = 20)
    private Long dormId;

    /**
     * 创建者
     */
    @Excel(name = "创建者", width = 20)
    private String createBy;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @Excel(name = "更新者", width = 20)
    private String updateBy;

    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @Excel(name = "删除标志", width = 20)
    private String delFlag;
}
